//
//  LWProfileTabVC.swift
//  Swift_Weibo_HLW
//
//  Created by huanglinwang on 16/9/19.
//  Copyright © 2016年 Linwang. All rights reserved.
//

import UIKit

class LWProfileTabVC: LWVisitorTabVC {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin {
            addNavRightButton()
        }else{
            visitorView?.updateVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
 
        }
    }

    func addNavRightButton() -> () {

        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", imageName: nil, target: self, action: #selector(pushAction))
        
    }
    
    func pushAction() {
        let testVC = LWTestVC()
        navigationController?.pushViewController(testVC, animated: true)
    }
    
    private func setupUINav(){
        
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "登陆")
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "注册")
        
    }
}
